'use strict';

const Controller = require('egg').Controller;

class MypublishController extends Controller {
  async myPublish() {
    const { ctx } = this
    const { username } = ctx.params
    const result = await ctx.service.api.myPublishApi(username)
    ctx.body = {
      code: 1,
      result
    }
  }
}

module.exports = MypublishController;
